package com.vitamo.dao.Utilisateur;

import java.io.Serializable;


import javax.jdo.annotations.Embedded;
import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;
import com.google.gwt.view.client.ProvidesKey;


@PersistenceCapable
public class Utilisateur implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	
	@PrimaryKey
	@Persistent
	private String username;

	@Persistent
	private String pwd;
	@Persistent
	private String type; 
	@Persistent
	private Boolean statu;
	@Persistent(defaultFetchGroup = "true")
	@Embedded
	private InfoUtilisateur Info;
	
	public Utilisateur() {
		super();
	}
	

	


	public Utilisateur(String username, String pwd, String type, Boolean statu,
			InfoUtilisateur info) {
		super();
		this.username = username;
		this.pwd = pwd;
		this.type = type;
		this.statu = statu;
		Info = info;
	}



	
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Boolean getStatu() {
		return statu;
	}

	public void setStatu(Boolean statu) {
		this.statu = statu;
	}
	


	public InfoUtilisateur getInfo() {
		return Info;
	}



	public void setInfo(InfoUtilisateur info) {
		Info = info;
	}



	@Override
	public String toString() {
		return "Utilisateur [username=" + username + ", pwd=" + pwd + ", type="
				+ type + ", statu=" + statu + ", Info=" + Info + "]";
	}
	
	

}
